package com.allinpay.merchantweb.controller;

import javax.servlet.http.HttpServletRequest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

import com.allinpay.merchantweb.model.UserLoginInfo;

@Controller
@RequestMapping(value = "/demo")
public class DemoController {

    private Logger logger = LoggerFactory.getLogger(DemoController.class);


    @RequestMapping(value = "/button")
    public String button(@ModelAttribute UserLoginInfo userLoginInfo, Model model, HttpServletRequest request) {
        return "demo/button";
    }
    
    @RequestMapping(value = "/form")
    public String form(@ModelAttribute UserLoginInfo userLoginInfo, Model model, HttpServletRequest request) {
        return "demo/form";
    }
}
